#列表去重
def quchong(list1):
    return list(dict.fromkeys(list1))

print(quchong([1,2,3,2,1,4,5]))